package com.service.impl;

import com.dao.UserDao;
import com.dao.impl.UserDaoImpl;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    //    @Resource
    @Autowired
    @Qualifier("userDaoImpl")
    UserDao userDao;

    @Override
    public void findAll() {
        System.out.println("Service层执行");
        userDao.findAll();
    }
}
